package com.cyh.forum.model;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    //  关联的对象
    private  User user;

    private  Board board;

    // ⽤⼾是不是作者
    @ApiModelProperty("⽤⼾是不是作者") // ⽤于swagger的注解
    private Boolean Own;
}